home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / gfx / misc / gnuplot-3.7src.lha / gnuplot-3.7src / gnuplot-3.7.lha / gnuplot-3.7 / makefile.msc < prev    next >
Makefile  |  1998-10-09  |  5KB  |  172 lines

  1. #
  2. # $Id: makefile.msc,v 1.17 1998/04/14 00:15:52 drd Exp $
  3. #
  4. # Make file for use with Microsoft C  Version 5.10
  5. # and Microsoft Program Maintenance Utility  Version 4.07
  6.  
  7. # where to place gnuplot.gih helpfile
  8. HELPFILE = gnuplot.gih
  9.  
  10. # /c  means don't link
  11. # /AL means large memory model (large code, large data)
  12. # /DPC means define symbol PC
  13. # /DLITE means no hiddenline removal
  14. # /Gt means no 64k segment problem
  15. # /Gt16 means all data items larger than 16 byte allocated outside
  16. #    default DATA segment thus providing more Stack space
  17. # /G2 means 80286 code
  18. # /Og /Gs global optimization, no stack probes
  19. # /FPi87    use inline 80x87 code (requires 486 or x87 Copro)
  20. # CFLAGS = /c /AL /DPC #/DMSDOS #/Zi #/Od
  21. # CFLAGS = /c /AL /G2 /Gt16 /Zi /Od /DPC /DREADLINE
  22. CFLAGS = /c /AL /EM /G2 /Gt16 /Gs /Og /FPi87 /DPC /DREADLINE /DLITE /D__MSC__ /DHAVE_STRNICMP /nologo
  23. # CFLAGS = /c /AL /Gt16 /Gs /Og /DPC /DREADLINE
  24. # CFLAGS = /c /AL /EM /DPC /DREADLINE /DLITE /Gt /D__MSC__ #/Zi #/Od
  25.  
  26. # see other terminal defines in term.h
  27. TERMFLAGS = 
  28.  
  29. # /NOE means NO EXTernal Dictionary
  30. # /EX  means pack EXE file
  31. # /ST:10000 means stack size 10000 bytes
  32. LINKFLAGS = /NOE /EX /ST:30000 /ONERROR:NOEXE #/codeview
  33.  
  34. OBJS =     bitmap.obj command.obj contour.obj eval.obj graphics.obj graph3d.obj \
  35.     help.obj internal.obj misc.obj parse.obj plot.obj plot2d.obj \
  36.     plot3d.obj readline.obj scanner.obj set.obj show.obj standard.obj \
  37.     stdfn.obj term.obj util.obj version.obj pcgraph.obj hrcgraph.obj \
  38.     corgraph.obj specfun.obj binary.obj interpol.obj fit.obj matrix.obj \
  39.     datafile.obj alloc.obj
  40.  
  41. CSOURCE5 = term\aed.trm term\cgi.trm term/dumb.trm term/dxf.trm term\dxy.trm \
  42.     term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
  43.     term\hp2648.trm term\hpgl.trm term\hpljii.trm 
  44. CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
  45.     term\iris4d.trm term\kyo.trm term\latex.trm term/pbm.trm term\pc.trm 
  46. CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
  47.     term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
  48.     term\v384.trm term\x11.trm
  49. CSOURCE8 = contour.c binary.c
  50. CC    = clx
  51. # default rules
  52. .c.obj:
  53.     $(CC) $(CFLAGS) $*.c
  54.  
  55. .asm.obj:
  56.     masm $*;
  57.  
  58. default: gnuplot.exe $(HELPFILE) demo\bf_test.exe
  59.  
  60. # FYI gnuplot.opt contains a list of the corefiles...
  61. # (eg COPY gnuplot.opt linkopt.msc  gets most of these)
  62.  
  63. linkopt.msc: makefile.msc
  64.       echo hrcgraph+corgraph+graph3d+(contour)+ >linkopt.msc
  65.       echo pcgraph+term+graphics+bitmap+ >>linkopt.msc
  66.       echo (set)+(show)+(help)+(specfun)+(binary)+ >>linkopt.msc
  67.       echo plot+plot2d+plot3d+command+internal+interpol+misc+readline+ >>linkopt.msc
  68.       echo parse+eval+scanner+standard+stdfn+util+ >>linkopt.msc
  69.       echo (version)+(fit+matrix)+datafile+alloc >>linkopt.msc
  70.       echo gnuplot >>linkopt.msc
  71.       echo nul; >>linkopt.msc
  72.  
  73. pcgraph.obj: pcgraph.asm header.mac lineproc.mac
  74.  
  75. corgraph.obj: corgraph.asm header.mac lineproc.mac
  76.  
  77. hrcgraph.obj: hrcgraph.asm header.mac lineproc.mac
  78.  
  79. binary.obj: binary.c 
  80.  
  81. bitmap.obj: bitmap.c bitmap.h plot.h
  82.  
  83. command.obj: command.c plot.h setshow.h help.h
  84.     $(CC) $(CFLAGS) /DHELPFILE=\"$(HELPFILE)\" command.c
  85.  
  86. contour.obj: contour.c plot.h
  87.  
  88. eval.obj: eval.c plot.h
  89.  
  90. gnubin.obj: gnubin.c
  91.  
  92. graphics.obj: graphics.c plot.h setshow.h
  93.  
  94. graph3d.obj: graphics.c plot.h setshow.h
  95.  
  96. fit.obj: fit.c fit.h matrix.h plot.h
  97.  
  98. matrix.obj: matrix.c matrix.h fit.h
  99.  
  100. help.obj: help.c plot.h help.h
  101.  
  102. internal.obj: internal.c plot.h
  103.  
  104. misc.obj: misc.c plot.h setshow.h
  105.  
  106. parse.obj: parse.c plot.h
  107.  
  108. plot.obj: plot.c plot.h setshow.h
  109.  
  110. readline.obj: readline.c
  111.  
  112. scanner.obj: scanner.c plot.h
  113.  
  114. set.obj: set.c plot.h setshow.h
  115.  
  116. show.obj: show.c plot.h setshow.h
  117.     $(CC) $(CFLAGS) /DHELPFILE=\"$(HELPFILE)\" show.c
  118.  
  119. standard.obj: standard.c plot.h
  120.  
  121. stdfn.obj: stdfn.c stdfn.h
  122.  
  123. specfun.obj: specfun.c plot.h
  124.  
  125. interpol.obj: interpol.c plot.h setshow.h
  126.  
  127. term.obj: term.c term.h plot.h setshow.h bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  128.     $(CC) $(CFLAGS) $(TERMFLAGS) /Iterm term.c
  129.  
  130. util.obj: util.c plot.h
  131.  
  132. version.obj: version.c
  133.  
  134. # convert gnuplot.doc to gnuplot.gih
  135. doc2gih.exe: docs\doc2gih.c docs\termdoc.c
  136.     $(CC) /Fedoc2gih.exe docs\doc2gih.c docs\termdoc.c
  137.  
  138. $(HELPFILE): doc2gih.exe docs\gnuplot.doc
  139.     doc2gih docs\gnuplot.doc $(HELPFILE)
  140.  
  141. # Object files in link command line are ordered to avoid far jumps.
  142. # use linkopt.msc to avoid command-line overflow
  143.  
  144. gnuplot.exe: $(OBJS) linkopt.msc
  145.  link $(LINKFLAGS) @linkopt.msc
  146.  
  147. #make binary demo files
  148. demo\bf_test.exe: bf_test.c dbinary.obj alloc.obj
  149.       $(CC) /AL /DPC /D__MSC__ /F 5000 /Gt /W1 /Fedemo\bf_test.exe bf_test.c dbinary.obj alloc.obj
  150.       cd demo
  151.       bf_test
  152.       cd ..
  153.  
  154. dbinary.obj: binary.c
  155.       $(CC) /c /AL /DPC /D__MSC__ /F 5000 /Gt /W1 /Fodbinary.obj binary.c
  156.  
  157. # clean up temporary files
  158. clean:
  159.       del *.obj
  160.       del gnuplot.map
  161.       del demo\bf_test.exe
  162.       del linkopt.msc
  163.       
  164. veryclean: clean
  165.       del gnuplot.exe
  166.       del $(HELPFILE)
  167.       del demo\binary1
  168.       del demo\binary2
  169.       del demo\binary3
  170.  
  171.